/*
 * Created on 2006-4-21
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package atom.core2.j2ee.util;





import javax.servlet.ServletContext;
import javax.servlet.http.HttpSession;

import org.apache.log4j.Logger;




/**
 * @author aps-zmc
 * 
 * TODO To change the template for this generated type comment go to Window -
 * Preferences - Java - Code Style - Code Templates
 */
public class ApplicationManager
{

	private static final Logger logger = Logger.getLogger(ApplicationManager.class);
	
	//在线用户列表
	public static final String ONLINE_USERLIST = "onlineUserlist";
	
	static public Object getAttribute(HttpSession session, String name)
	{
		ServletContext application = session.getServletContext();
		return application.getAttribute(name);
	}
	static public void setAttribute(HttpSession session, String name,Object object)
	{
		ServletContext application = session.getServletContext();
		application.setAttribute(name,object);
	}	
	
}
